import Vue from 'vue'
import Vuex from '@/store/index.js'


// 加
function hasAuth(auth) {
    return Vuex.state.user.btnList.some(item=> item.code === auth)
}


Vue.prototype.hasAuth = hasAuth;